package cn.wolfcode.web.controller;


import cn.wolfcode.qo.JsonResult;
import cn.wolfcode.service.IBusinessService;
import cn.wolfcode.service.IEmployeeService;
import cn.wolfcode.service.ISystemDictionaryItemService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpSession;
import java.util.List;

@Controller
public class indexController {
    @Autowired
    private IBusinessService businessService;

    //处理查询所有部门的请求,响应HTML
    //login/*.do
    @RequestMapping("/index")
    public String list(Model model) {
        model.addAttribute("business",businessService.selectedMainStore());
        model.addAttribute("businesss",businessService.listAll());
        return "index";
    }


}


